<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  <title>木马自检程序</title>
  <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  <link href="css/base.css" rel="stylesheet" type="text/css" />
  <link rel="stylesheet" type="text/css" href="css/indexbody.css" />
  <style type="text/css">
    td {
      padding-left: 8px;
    }
  </style>
  <script language="javascript" src="../static/js/jquery.js"></script>
  <script language='javascript' src='js/main.js'></script>
  <script language="javascript" src="../static/js/dedeajax2.js"></script>
  <script language='javascript'>

    function LoadCtTest() {
      var filetype = $Obj('filetype').value;
      var info = $Obj('info').value;
      $Obj('loaddiv').style.display = 'block';
      var myajax = new DedeAjax($DE('messagetd'));
      myajax.SendGet2('sys_safetest.php?action=test&filetype=' + filetype + "&info=" + info);
      $Obj('loaddiv').style.display = 'none';
    }

    function LoadCtClear() {
      $Obj('loaddiv').style.display = 'block';
      var myajax = new DedeAjax($DE('messagetd'));
      myajax.SendGet2('sys_safetest.php?action=clear');
      $Obj('loaddiv').style.display = 'none';
    }

  </script>
</head>

<body leftmargin="8" topmargin="8" background='images/allbg.gif'>

  <div id='loaddiv' style='display:none'>
    <p align='center' style='padding-top:200px'><img src='images/loadinglit.gif' /> 请稍后，正在操作中...</p>
  </div>

  <div class="bodytitle mt-3">
    <div class="bodytitleleft"></div>
    <div class="bodytitletxt" style="padding-left:10px;">用户安全中心</div>
  </div>
  <?php echo $alter;?>
  <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable"
    style="background:#CFCFCF;">
    <tr>
      <td width="100%" height="24" colspan="2" bgcolor="#EDF9D5" background="images/tbg.gif" style="padding-left:10px;">
        <b>木马自检程序</b>
      </td>
    </tr>
    <tr>
      <td height="73" colspan="2" bgcolor="#FFFFFF">
        <strong>安全建议：</strong>
        <br />
        1、有条件的用户把中 data、templets、uploads、html、special、images、install目录设置为不允许执行脚本，其它目录禁止写入，系统将更安全；<br />
        2、本检测程以开发模式为标准，如果您的网站目录包含其它系统，此检测程序可能会产生错误判断；<br />
        3、检测程序会跳过对模板缓存目录的检测，为了安全起见，检测完成后建议清空模板缓存。
      </td>
    </tr>
    <tr>
      <td height="50" colspan="2" bgcolor="#FFFFFF">
        <p>文件类型：
          <input name="filetype" type="text" id="filetype" value="php|inc" style="width:420px" />
          &nbsp;要检查的文件类型</p>
        <p>代码特征：
          <input name="info" type="text" id="info" value="eval|cmd|system|exec|_GET|_POST|_REQUEST|base64_decode" style="width:420px" />
          &nbsp;特征代码</p>
      </td>
    </tr>
    <tr>
      <td height="50" colspan="2" bgcolor="#FFFFFF">
        <button type="button" name="bt1" class="btn btn-secondary" onclick="LoadCtTest();">开始检测</button>
        &nbsp;
        <button type="button" name="bt2" class="btn btn-secondary" onclick="LoadCtClear();">清空模板缓存</button>
      </td>
    </tr>
    <tr>
      <td height="30" colspan="2" bgcolor="#F9FCEF">检测结果：(结果仅供参考，请务必查看源码后才删除非法文件)</td>
    </tr>
    <tr>
      <td height="300" colspan="2" id="messagetd" valign="top" bgcolor="#FFFFFF">
      </td>
    </tr>
  </table>
</body>

</html>